<?php $this->pageTitle=Yii::app()->name; 
$this->breadcrumbs=array(
);
?>

<h1>Welcome to <?php echo CHtml::encode(Yii::app()->name); ?></h1>

<h2>Local Hotshots</h2>
<div class="hotshot_list">
<p><?php echo CHtml::link('All coffee shops &gt;&gt;&gt;',array('coffeeShop/listAll'))?></p>
<?php 
$item_per_line=4;
$i=0;
foreach($hotshots as $hotshot){ 
	$this->renderPartial('application.views.coffeeShop._listItem',array(
		'hotshot'=>$hotshot,
	));


	if($i++%$item_per_line==$item_per_line-1){
		?>
<div class="clear"></div>
		<?php
	}
} ?>
<div class="rc_main"><p>More cafes <?php echo CHtml::link('click here',array('coffeeShop/listAll'))?>.</p></div>
<div class="clear"></div>
</div><!-- hotshot_list -->